package com.wuhuiyue.controller;


import com.wuhuiyue.entity.Firm;
import com.wuhuiyue.entity.Result;
import com.wuhuiyue.service.IFirmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hy-woo
 * @since 2022-06-11
 */
@RestController
@RequestMapping("/firm")
public class FirmController {

    @Autowired
    IFirmService firmService;

    @RequestMapping("/firmList")
    public Result firmList(){
        List<Firm> list = firmService.list();
        return Result.OK(list);
    }

}
